package net.fpeg.kotlin.msa.auth.service

import org.springframework.cloud.openfeign.FeignClient
import org.springframework.stereotype.Service
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bind.annotation.RequestMapping


@FeignClient("wordbase")
@RequestMapping(headers = ["eyJ0eX=bWluOCIsImV4cCI6MTU5MTYxOTI5NywiaWF0IjoxNTkwNzU1M"])
interface FeignWordUserService {
    @PostMapping("/wordUser/{userId}")
    fun register(@PathVariable("userId") uid: Long)
}